export default {
    data() {
        return {
            isOriginHei: true,
            screenHeight: document.body.clientHeight,
            originHeight: document.body.clientHeight
        }
    },
    watch: {
        screenHeight(val) {
            this.screenHeight = val
            if (this.originHeight != val) {
                this.isOriginHei = false;
            } else {
                this.isOriginHei = true;
            }
        }
    },
    mounted() {
        const self = this
        this.screenHeight = document.body.clientHeight
        this.originHeight = document.body.clientHeight
        window.onresize = () => {
            return (() => {
                window.screenHeight = document.body.clientHeight
                self.screenHeight = document.body.clientHeight
            })()
        }
    },
};